/*---------------------------------------------------------------------------
;	global.h - The General Global Definition
;
;	Copyright (C) 2007 Our AMCT Corp.
; 	All rights reserved.
;	
;	License Type:	BSD
;	
;	Author:			Xu Chenxiang
;	File Version:	v0.1 (2007/07/11)
;	
;	File History:
;	v0.1 	Inital Release
;	
;---------------------------------------------------------------------------*/

#ifndef GLOBAL_H
#define GLOBAL_H


#include "../device/c8051F120.h"
#include "../device/c8051F120_reg_def.h"
#include "c8051libtypes.h"
#include "c8051libdefs.h"

#include "board.h"		//Board Configuration Infomation


// Global C8051F Defines


// Global C8051F Types Definitions




// CPU clock speed choose
#define F_CPU	24000000
// #define F_CPU	16000000               		// 16MHz processor
// #define F_CPU	14745000               		// 14.745MHz processor
// #define F_CPU	8000000               		// 8MHz processor
// #define F_CPU	7372800               		// 7.37MHz processor
// #define F_CPU	4000000               		// 4MHz processor
// #define F_CPU	3686400               		// 3.69MHz processor
#define CYCLES_PER_US ((F_CPU+500000)/1000000) 	// cpu cycles per microsecond

#endif
